#coding=utf-8
__author__ = '药师Aric'
'''
socket client
'''
import socket
import time
BUF_SIZE = 102400
host = 'localhost'
port = 8083
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
client.connect((host, port))
client.send('hello world \r\n'.encode())
# while True:
#     client.send('hello world \r\n'.encode())
    # time.sleep(1)
    # request = client.recv(BUF_SIZE)
    # print(request.decode())